home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12147 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news.iastate.edu!news
  2. From: Opal Dragon <dwynn@nwciowa.edu>
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Delay malfunction in Borland (& Turbo) C(++).
  5. Date: 18 Mar 1996 16:56:45 GMT
  6. Organization: Iowa State University, Ames, Iowa
  7. Message-ID: <4ik4kd$17g@news.iastate.edu>
  8. NNTP-Posting-Host: pcuser55.nwciowa.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  13.  
  14. I'm working on a graphics program in Borland C(++) version 3.1 (Most of 
  15. my code is strictly C, but the compiler does have C++ capabilities).
  16.  
  17. At the beginning of my main program loop, I use a Delay statement, hoping 
  18. to regulate the loop so that all computers will run it at the same speed. 
  19. (I haven't had much experience with interrupts, so was hoping that this 
  20. would be sufficient)  There seems to be some kind of glitch with the 
  21. Delay statement.  It will work fine for a minute or two, then the 
  22. computer seems to completely ignore the Delay statement, and my computer 
  23. looks like it's had a little too much LSD.
  24.  
  25. Has anyone else noticed problems with Borland's (I'm believe the Delay is 
  26. Borland-specific) Delay statement?  Anyone know how to fix this?  Any 
  27. suggestions on other ways to slow down my program?
  28.  
  29. ---------------------+-----------------------------------------------
  30.     Opal  Dragon     | Back in the days of Old Earth one group had a
  31.     -==(UDIC)==-     | saying, 'What shall it profit a man, if he  
  32. ---------------------+ should gain the whole world, and lose his own
  33.                      | soul?' Nobody listened then, either... They  
  34. David Wynn Box 1182  | said God was love and postulated a heaven of 
  35. Northwestern College | communal love, and a hell for those who could 
  36. 208 8th St SW        | not love. Later on that got crudded up with 
  37. Orange City IA 51041 | other stuff until the ideas were gone and only 
  38.                      | the artifacts were left... They paid more at-
  39. dwynn@nwciowa.edu    | tention to things than to ideas--and...they
  40.                      | died for it.             --Jack L. Chalker
  41. ---------------------+-----------------------------------------------
  42.                    
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.